const NodeRSA = require("node-rsa");
const crypto = require("crypto");
const key = new NodeRSA({ b: 2048 })
var publicKey = key.exportKey("pkcs1-public-pem")
var privateKey = key.exportKey("pkcs1-private-pem")


function getKeyPair() {
    const key = new NodeRSA({ b: 2048 })
    var sign = crypto.createSign('SHA256');
    sign.update('ourjs.com copy right');
    var signature = sign.sign(privateKey, 'hex');
    console.log(signature);
}